<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ECMAScript 与 Vue.js 技术指南</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* Hero Section */
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        /* 卡片悬停效果 */
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        /* 代码块样式 */
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 8px;
            padding: 1.5rem;
            overflow-x: auto;
            font-family: 'Consolas', 'Monaco', monospace;
        }
        
        /* 首字下沉 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            font-weight: 700;
            color: #667eea;
        }
        
        /* 渐变文字 */
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 章节标题装饰 */
        .section-title::before {
            content: '';
            position: absolute;
            left: -20px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        /* 平滑滚动 */
        html {
            scroll-behavior: smooth;
        }
        
        /* 导航固定 */
        .nav-fixed {
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.9);
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="fixed top-0 w-full z-50 nav-fixed shadow-lg">
        <div class="container mx-auto px-6 py-4">
            <div class="flex items-center justify-between">
                <h1 class="text-2xl font-bold gradient-text">ECMAScript & Vue.js</h1>
                <div class="hidden md:flex space-x-6">
                    <a href="#ecmascript" class="text-gray-700 hover:text-purple-600 transition">ECMAScript</a>
                    <a href="#vue" class="text-gray-700 hover:text-purple-600 transition">Vue.js</a>
                    <a href="#tools" class="text-gray-700 hover:text-purple-600 transition">开发工具</a>
                    <a href="#practice" class="text-gray-700 hover:text-purple-600 transition">实践指南</a>
                </div>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <section class="hero-gradient text-white py-32 mt-16">
        <div class="container mx-auto px-6 text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6">
                <i class="fas fa-code mr-4"></i>
                现代前端开发技术指南
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">
                深入理解 ECMAScript 6+ 与 Vue.js 生态系统
            </p>
            <div class="flex justify-center space-x-4">
                <button class="bg-white text-purple-700 px-8 py-3 rounded-full font-semibold hover:bg-gray-100 transition">
                    <i class="fas fa-rocket mr-2"></i>开始学习
                </button>
                <button class="border-2 border-white px-8 py-3 rounded-full font-semibold hover:bg-white hover:text-purple-700 transition">
                    <i class="fas fa-book mr-2"></i>查看文档
                </button>
            </div>
        </div>
    </section>

    <!-- 主要内容 -->
    <main class="container mx-auto px-6 py-12">
        <!-- ECMAScript 介绍 -->
        <section id="ecmascript" class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 card-hover">
                <h2 class="text-4xl font-bold mb-8 relative pl-6 section-title">
                    <i class="fas fa-js-square mr-3 text-yellow-500"></i>
                    ECMAScript 介绍
                </h2>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h3 class="text-2xl font-semibold mb-4 text-purple-700">什么是 ECMAScript？</h3>
                        <p class="text-gray-700 leading-relaxed drop-cap">
                            ECMAScript 是一种由 Ecma 国际通过 ECMA-262 标准化的脚本程序设计语言。这种语言在万维网上应用广泛，它往往被称为 JavaScript 或 JScript，但实际上后两者是 ECMA-262 标准的实现和扩展。
                        </p>
                    </div>
                    
                    <div class="bg-gradient-to-br from-purple-50 to-pink-50 rounded-xl p-6">
                        <h3 class="text-2xl font-semibold mb-4 text-purple-700">
                            <i class="fas fa-link mr-2"></i>关系解析
                        </h3>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span class="text-gray-700">ECMAScript 是浏览器脚本语言的规范标准</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span class="text-gray-700">JavaScript 是 ECMAScript 的一种实现</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <span class="text-gray-700">ES6 让 JavaScript 成为企业级开发语言</span>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- ECMAScript 版本时间线 -->
                <div class="mt-12">
                    <h3 class="text-2xl font-semibold mb-6 text-center">ECMAScript 发展历程</h3>
                    <div class="mermaid">
                        graph LR
                            A[ES5 2009] --> B[ES6/ES2015]
                            B --> C[ES2016]
                            C --> D[ES2017]
                            D --> E[ES2018]
                            E --> F[ES2019]
                            F --> G[ES2020+]
                            
                            style A fill:#f9f,stroke:#333,stroke-width:2px
                            style B fill:#bbf,stroke:#333,stroke-width:4px
                            style G fill:#bfb,stroke:#333,stroke-width:2px
                    </div>
                </div>
            </div>
        </section>

        <!-- ES6 新特性 -->
        <section class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8">
                <h2 class="text-4xl font-bold mb-8 gradient-text">
                    <i class="fas fa-star mr-3"></i>
                    ES6 核心特性
                </h2>
                
                <div class="grid md:grid-cols-3 gap-6">
                    <!-- let/const -->
                    <div class="bg-gradient-to-br from-blue-50 to-indigo-50 rounded-xl p-6 card-hover">
                        <div class="text-3xl mb-4 text-blue-600">
                            <i class="fas fa-lock"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">let 与 const</h3>
                        <p class="text-gray-700 mb-4">块级作用域变量声明，更严格的变量管理</p>
                        <div class="code-block text-sm">
                            <pre>let name = "Vue";
const PI = 3.14159;</pre>
                        </div>
                    </div>
                    
                    <!-- 箭头函数 -->
                    <div class="bg-gradient-to-br from-green-50 to-emerald-50 rounded-xl p-6 card-hover">
                        <div class="text-3xl mb-4 text-green-600">
                            <i class="fas fa-arrow-right"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">箭头函数</h3>
                        <p class="text-gray-700 mb-4">简洁的函数语法，自动绑定 this</p>
                        <div class="code-block text-sm">
                            <pre>const add = (a, b) => a + b;
const greet = name => `Hello ${name}!`;</pre>
                        </div>
                    </div>
                    
                    <!-- 模块化 -->
                    <div class="bg-gradient-to-br from-purple-50 to-pink-50 rounded-xl p-6 card-hover">
                        <div class="text-3xl mb-4 text-purple-600">
                            <i class="fas fa-cube"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-3">模块化</h3>
                        <p class="text-gray-700 mb-4">原生支持模块导入导出</p>
                        <div class="code-block text-sm">
                            <pre>export const utils = {...};
import { utils } from './utils';</pre>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Vue.js 介绍 -->
        <section id="vue" class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8">
                <h2 class="text-4xl font-bold mb-8 relative pl-6 section-title">
                    <i class="fab fa-vuejs mr-3 text-green-500"></i>
                    Vue.js 渐进式框架
                </h2>
                
                <div class="mb-8">
                    <p class="text-lg text-gray-700 leading-relaxed">
                        Vue 是一套用于构建用户界面的渐进式 JavaScript 框架。与其它大型框架不同的是，Vue 被设计为可以自底向上逐层应用。Vue 的核心库只关注视图层，不仅易于上手，还便于与第三方库或既有项目整合。
                    </p>
                </div>

                <!-- MVVM 架构图 -->
                <div class="bg-gray-50 rounded-xl p-8 mb-8">
                    <h3 class="text-2xl font-semibold mb-6 text-center">MVVM 架构模式</h3>
                    <div class="mermaid">
                        graph TB
                            subgraph View
                                A[DOM/HTML]
                            end
                            subgraph ViewModel
                                B[Vue.js]
                                C[数据绑定]
                                D[DOM监听]
                            end
                            subgraph Model
                                E[JavaScript对象]
                            end
                            
                            A <-->|事件| D
                            D --> B
                            B --> C
                            C <-->|更新| E
                            E -->|通知| B
                            B -->|渲染| A
                            
                            style B fill:#42b983,stroke:#333,stroke-width:2px,color:#fff
                    </div>
                </div>

                <!-- Vue 特性卡片 -->
                <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-4">
                    <div class="text-center p-6 bg-gradient-to-br from-green-400 to-blue-500 text-white rounded-xl">
                        <i class="fas fa-sync-alt text-4xl mb-3"></i>
                        <h4 class="font-semibold">响应式数据</h4>
                    </div>
                    <div class="text-center p-6 bg-gradient-to-br from-purple-400 to-pink-500 text-white rounded-xl">
                        <i class="fas fa-puzzle-piece text-4xl mb-3"></i>
                        <h4 class="font-semibold">组件化开发</h4>
                    </div>
                    <div class="text-center p-6 bg-gradient-to-br from-yellow-400 to-orange-500 text-white rounded-xl">
                        <i class="fas fa-code text-4xl mb-3"></i>
                        <h4 class="font-semibold">模板语法</h4>
                    </div>
                    <div class="text-center